const express = require('express')
const router = express.Router()
const { uploadToken } = require('./qiniu.config')

router.use(express.json())

// 获取配置
router.get('/getConfig', (req, res) => {
  res.status(200).send({
    code: 1,
    msg: 'success',
    data: {
      token: uploadToken
    }
  })
});

module.exports = router